<?php namespace App\Admin\Access\User\Services;

trait StatusManage {
    
    //开启
    public function open(){
        return $this->change('status', '1', '0');
    }
    
    //关闭
    public function close(){
        return $this->change('status', '0', '1');
    }
    
    //批量开启
    public function multiOpen(){
        return $this->multiChange('status', '1', '0');
    }
    
    //批量关闭
    public function multiClose(){
        return $this->multiChange('status', '0', '1');
    }
}